package com.ice.app.system.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.ice.app.system.entity.User;

/**
 * 系统用户
 * 
 * @author Mr.Palo
 * @email 442803840@qq.com
 * 
 */
public interface UserMapper{

	int insertSelective(User user);
	
	int deleteByPrimaryKey(String key);
	
	int updateByPrimaryKeySelective(User user);
	
	User selectByPrimaryKey(String key);
	
	User selectByUsername(String username);

	List<User> selectByFilter(Map<String,Object> map);
	
	User selectByUsernameAndPassword(@Param("username")String username,@Param("password")String password);

}
